import { createRouter, createWebHistory } from 'vue-router'
import TabsView from "@/views/tab/TabsView.vue";
import HomeView from '@/views/tab/home/HomeView.vue'
import OrderView from "/src/views/tab/order/OrderView.vue";
import MeView from "@/views/tab/me/MeView.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
        path: '/',
        redirect: '/tabs'

    },
    {
      path: '/tabs',
      name: 'tabs',
      component: TabsView,
      children: [
        {name: 'home', path: 'home', component: HomeView},
        {name: 'order', path: 'order', component: OrderView},
        {name: 'mine', path: 'me', component: MeView},

      ]
    },

  ]
})

export default router
